package net.wanho.controller;

import net.wanho.ioc.SpringBean;
import net.wanho.util.MyUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author：汤小洋
 * Date：2024-08-08 15:35
 * Description：<描述>
 */
// @RestController
@Controller
public class HelloController {

    @Autowired
    private SpringBean springBean;

    @Autowired
    private SpringBean springBean2;

    @RequestMapping("/hello")
    @ResponseBody
    public String hello(){
        // springBean.show();
        // System.out.println(springBean == springBean2);

        MyUtil.print();

        return "Hello SpringBoot-----------------";
    }



}
